package com.eliauk.demo.controller.write;

import com.alibaba.excel.util.ListUtils;
import com.eliauk.demo.entity.wirte.*;

import java.util.Date;
import java.util.List;

public class ListData {
    public static List<DemoData> demoData() {
        List<DemoData> list = ListUtils.newArrayList();
        for (int i = 0; i < 10; i++) {
            DemoData data = new DemoData();
            data.setString("字符串" + i);
            data.setDate(new Date());
            System.out.println(data.getDate());
            data.setDoubleData(0.56);
            list.add(data);
        }
        return list;
    }

    public static List<IndexData> indexData() {
        List<IndexData> list = ListUtils.newArrayList();
        for (int i = 0; i < 10; i++) {
            IndexData data = new IndexData();
            data.setString("字符串" + i);
            data.setDate(new Date());
            System.out.println(data.getDate());
            data.setDoubleData(0.56);
            list.add(data);
        }
        return list;
    }

    public static List<ComplexHeadData> complexHeadData() {
        List<ComplexHeadData> list = ListUtils.newArrayList();
        for (int i = 0; i < 10; i++) {
            ComplexHeadData data = new ComplexHeadData();
            data.setString("字符串" + i);
            data.setDate(new Date());
            System.out.println(data.getDate());
            data.setDoubleData(0.56);
            list.add(data);
        }
        return list;
    }

    public static List<ConverterData> converterData() {
        List<ConverterData> list = ListUtils.newArrayList();
        for (int i = 0; i < 10; i++) {
            ConverterData data = new ConverterData();
            data.setString("字符串" + i);
            data.setDate(new Date());
            System.out.println(data.getDate());
            data.setDoubleData(0.56);
            list.add(data);
        }
        return list;
    }


    public static List<WidthAndHeightData> widthAndHeightData() {
        List<WidthAndHeightData> list = ListUtils.newArrayList();
        for (int i = 0; i < 10; i++) {
            WidthAndHeightData data = new WidthAndHeightData();
            data.setString("字符串" + i);
            data.setDate(new Date());
            System.out.println(data.getDate());
            data.setDoubleData(0.56);
            list.add(data);
        }
        return list;
    }


    public static List<DemoStyleData> demoStyleData() {
        List<DemoStyleData> list = ListUtils.newArrayList();
        for (int i = 0; i < 10; i++) {
            DemoStyleData data = new DemoStyleData();
            data.setString("字符串" + i);
            data.setDate(new Date());
            System.out.println(data.getDate());
            data.setDoubleData(0.56);
            list.add(data);
        }
        return list;
    }

}
